package cn.gzjp.modules.gas.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gzjp.common.persistence.Page;
import cn.gzjp.common.service.CrudService;
import cn.gzjp.modules.gas.entity.GasCategory;
import cn.gzjp.modules.gas.dao.GasCategoryDao;

/**
 * 油品类别关联Service
 * @author zengcp
 * @version 2018-03-05
 */
@Service
@Transactional(readOnly = true)
public class GasCategoryService extends CrudService<GasCategoryDao, GasCategory> {

	public GasCategory get(String id) {
		return super.get(id);
	}
	
	public List<GasCategory> findList(GasCategory gasCategory) {
		return super.findList(gasCategory);
	}
	
	public Page<GasCategory> findPage(Page<GasCategory> page, GasCategory gasCategory) {
		return super.findPage(page, gasCategory);
	}
	
	@Transactional(readOnly = false)
	public void save(GasCategory gasCategory) {
		super.save(gasCategory);
	}
	
	@Transactional(readOnly = false)
	public void delete(GasCategory gasCategory) {
		super.deleteByLogic(gasCategory);
	}
	
}